<template>
 <div>
    <div class="title">热销推荐</div>
    <ul>
      <li v-for="(item) of List" :key="item.id" class="border-bottom">
        <img class="item-img" :src="item.imgUrl" />
        <div class="text">
          <div class="content1">{{item.title}}</div>
          <div class="content2">{{item.desc}}</div>
          <button class="content3">查看详情</button>
        </div>
      </li>
    </ul>
 </div>
</template>
<script>
export default {
  name: 'HomeRecommend',
  props: {
    List: Array
  }
}
</script>
<style lang="stylus" scoped>
@import '~@/assets/styles/mixins.styl'
.title {
  background: #eee ;
  line-height: 0.8rem;
  text-indent:0.2rem;
  text-align:left;
  margin-top:0.2rem;
}
ul li {
  display: flex;
  text-align:left;
  overflow:hidden;
  height:1.9rem;
}
.item-img {
  width:1.7re m;
  height:1.7rem ;
  padding:0.1rem ;
}
.text {
  flex:1;
  min-width:0;
  padding: .1rem;
}
.text .content1{
  ellipsis()
  line-height:0.54rem;
  font-size:0.32rem;
  color: #ccc;
}
.text .content2{
  ellipsis()
  line-height:0.4rem;
  // line-height:0.54rem;
  // font-size:0.32rem;
}
.content3{
  line-height:0.44rem;
  margin-top:0.16rem;
  border-radius: 0.06rem;
  background: #ff9300;
  color:#ffffff;
  padding:0.1rem;
}
</style>
